import request from '@/utils/request';
const Qs = require('qs');

// 邮箱登录
export const apiEmiLogin = (params: any) => {
  const data = Qs.stringify(params);
  return request(`/login/?${data}`);
};

// 手机登录
export const apiLogin = (params: any) => {
  const data = Qs.stringify(params);
  return request(`/register/cellphone/?${data}`, {
    // method: 'get',
  });
};

//  /captcha/sent 发送验证码
export const Logincaptcha = (params: any) => {
  const data = Qs.stringify(params);
  return request(`/captcha/sent/?${data}`);
};
